package com.tomato.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@Data
public class OrderDetail {
    @TableId(value = "detail_id")
    private String detailId;
    //订单id
    private String orderId;
    //商品id
    @TableField(value = "product_id")
    private String id;
    //商品数量
    @TableField(value = "product_count")
    private int count;
    //商品名字
    private String productName;
    //商品价格
    private double productPrice;
    //商品小图
    private String productIcon;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;
}
